<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>无名杀</title>
		<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport" />
		<meta content="yes" name="apple-mobile-web-app-capable" />
		<meta content="black" name="apple-mobile-web-app-status-bar-style" />
		<meta content="telephone=no" name="format-detection" />
		<link rel="../../shortcut icon" href="../../favicon.ico" />
		<link href="../../css/read.css" rel="stylesheet" type="text/css" />

		<script type="text/javascript" src="../../js/jquery.min.js"></script>
	</head>
	<style>
		.hanshuoming {
			color: #333;
			padding: 15px 0;
			font-weight: bold;
			font-size: 14px;
		}

		.shuoming {
			color: #00b953;
			padding: 5px 0;
			font-size: 12px;
		}


		.canshuming {
			color: #0085CB;
			padding: 15px 0;
			font-weight: bold;
			font-size: 14px;
		}

		.canshuming-li {
			color: #565656;
			padding: 5px 0;
			font-size: 12px;
		}

		.tishi {
			font-size: 12px;
			margin-top: 40px;
			color: #999;
		}

		.tishi .a {
			width: 100%;
			text-align: center;
			margin-top: 20px;
		}
	</style>
	<body>

		<div id="app">

			<div class="head">
				<a href="javascript:;" onclick="window.history.go(-1)">
					<div>返回</div>
				</a>
				<a href="../../index.html">
					<div>首页</div>
				</a>
			</div>

			<div class="content">

				<div class="text"></div>

				<div class="tishi">
					<div>注：网页由"呲牙哥"制作维护，码云开源。函数来自诗笺的扩展《全能搜索》，补全函数请联系诗笺（qq号：2954700422）。
					</div>
					<div class="a">
						<a href="https://mp.weixin.qq.com/s/8WF4fNlcZFCB6fFL0ubJBg">
							《全能搜索》扩展招兵买马了!
						</a>
					</div>
				</div>


			</div>

		</div>

		<script type="text/javascript">
			if (!(navigator.userAgent.match(
					/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
				))) {
				$("#app").addClass('app')
				$(".head").css({
					"width": '600px'
				});
			}

			var hanshuShuoming = JSON.parse(sessionStorage.getItem("hanshuShuoming"))
			console.log(hanshuShuoming)


			$('.text').append("<div class='hanshuoming'>函数名：" + hanshuShuoming.name + "</div>")

			if (hanshuShuoming.type) {
				$('.text').append("<div class='shuoming'>代码类型：" + hanshuShuoming.type + "</div>")
			} else if (hanshuShuoming.return) {
				$('.text').append("<div class='shuoming'>代码类型：function</div>")
			} else {
				$('.text').append("<div class='shuoming'>代码类型：暂无</div>")
			}


			if (hanshuShuoming.description) {
				$('.text').append("<div class='shuoming'>代码描述：" + hanshuShuoming.description + "</div>")
			}
			if (hanshuShuoming.return.type) {
				$('.text').append("<div class='shuoming'>返回值类型：" + hanshuShuoming.return.type + "</div>")
			}
			if (hanshuShuoming.return.description) {
				$('.text').append("<div class='shuoming'>返回值描述：" + hanshuShuoming.return.description + "</div>")
			}


			var listValueB = Object.keys(hanshuShuoming.args)
			var listValue = Object.values(hanshuShuoming.args)

			for (var i = 0; i < listValueB.length; i++) {
				$('.text').append("<div class='canshuming'>参数名：" + listValueB[i] + "</div>")

				$('.text').append("<div class='canshuming-li'>参数描述：" + listValue[i].description + "</div>")
				$('.text').append("<div class='canshuming-li'>参数类型：" + listValue[i].type + "</div>")

				if (listValue[i].exist) {
					var exist = "是"
				} else {
					var exist = "否"
				}

				$('.text').append("<div class='canshuming-li'>是否必须存在：" + exist + "</div>")
				$('.text').append("<div class='canshuming-li'>参数顺序：第" + listValue[i].index + "位</div>")

			}
		</script>

	</body>
</html>
